package pri.damai.xiaowu.usercenter.sysuser.command;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


/**
 * 中心账户表(SysUser)表实体类
 * @Desc
 * @Author DaMai
 * @Date 2022-03-03 17:00:32
 */
@Data
public class AddBaseUserCommand {

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "用户名")
    @NotBlank(message = "用户名不可为空")
    @Length(max = 20, message = "用户名不符合长度要求(最长20位)。")
    private String username;

    @Schema(description = "密码")
    @NotBlank(message = "密码不可为空")
    @Length(min = 6, max = 12, message = "密码不符合长度要求(6-12位)。")
    private String password;

}
